package com.it00zyq.admin.service.impl;

import com.it00zyq.admin.service.TypeService;
import com.it00zyq.common.entity.Type;
import com.it00zyq.common.mapper.TypeMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zyq
 * @Date 2022/4/29 16:42
 * @Description TODO
 * @Version 1.0
 **/
@Service
@Slf4j
@RequiredArgsConstructor
public class TypeServiceImpl implements TypeService {
    private final TypeMapper typeMapper;

    @Override
    public List<Type> list() {
        return typeMapper.selectList(null);
    }
}
